package com.wondertek.poms.setting;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import com.wondertek.oes.sso.client.EnableMySsoClient;
import com.wondertek.oes.sso.client.store.ehcache.DefaultEhcacheStore;
import com.wondertek.oes.sso.common.contants.enums.SsoClientTypeEnum;

@SpringBootApplication
@EntityScan("com.wondertek.poms.*")
@ComponentScan(basePackages = {"com.wondertek.poms"})
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.wondertek.poms.*"})
@EnableMySsoClient(clientType = SsoClientTypeEnum.SimpleClient, cacheStore = DefaultEhcacheStore.class) //SSO接入
@EnableApolloConfig
public class PomsSettingApplication {

    public static void main(String[] args) {
        SpringApplication.run(PomsSettingApplication.class, args);
    }

}